<?php

// $Id$


require_once($WSC->get_site_inc_dir().'modules/admin_panel/site_admin_page_w_fctrl_ua.class.php');
require_once($WSC->get_site_inc_dir().'modules/admin_panel/forms/user/user_form_ctrl.class.php');


class User_Edit_WP extends Site_Admin_Page_W_FCtrl_UA {
	protected function create_form_ctrl() {
		$dbc = $this->get_dbc();
		$tvm = $this->get_tvm();
		$ret = new User_Form_Ctrl('user', $tvm, $dbc);

		return $ret;
	}


	protected function on_add_new() {
//		$this->form_ctrl->set_permanent_external_param('add_new', 1);
//		$this->export('add_new', 1);
	}


	protected function on_received_id($object_id) {
		throw new Tangra_User_Exception('Cannot edit this type of records.');
//		$this->export('site_id', $object_id);
	}
}